<h2 class="title">{%if $act eq 'add'%}添加{%else%}修改{%/if%}设备转资</h2>
<form action="index.php?c=zy_mc_transfer&m={%$act%}&post=1" method=post name=frm enctype="multipart/form-data" onSubmit="return Validator.Validate(this,3)">
<table class="tb_term" width="100%">
<tr>
	<td class="alignright">转资合同编号</td>
	<td>
		{%if $contract_no%}
			<input type="text" class="input_edit_stand txt-normal" name='contract_no' id='contract_no' value='{%$contract_no%}' readonly>&nbsp;
			{%if $act neq 'edit'%}
				<a href="index.php?c=zy_mc_auth&is_jump=1&is_show_sell=1" hidefocus="true">请重新选择</a>
			{%/if%}
		{%else%}
			<input type="text" class="input_edit_stand txt-normal" name='contract_no' id='contract_no' value='{%$contract_no%}' readonly />&nbsp;&nbsp;
			<a href="index.php?c=zy_mc_auth&is_jump=1&is_show_sell=1"  hidefocus="true">请选择</a>
		{%/if%}			
	</td>
</tr>
<tr>
	<td class="tr_td_width01 alignright">转资单据编号</td>
	<td><input type=text class="input_edit_stand txt-normal" name="transfer_from_no" value='{%$transfer_from_no%}' dataType="Require" msg=""></td>	
	<td class="tr_td_width01 alignright">转资项目</td>
	<td class="tr_td_width03">
		<select name="project_id" class="select_edit02 txt-normal" {%if $is_show == 1%}readonly{%/if%} dataType="Require" msg="">
			<option value="">-- 请选择转资项目 --</option>
			{%html_options options=$project_arr selected=$project_id%}
		</select>
	</td>
</tr>
<tr>
	<td class="alignright">转资金额</td>
	<td><input type=text class="input_edit_num txt-normal" name="transfer_price" size=15 value='{%$transfer_price%}'  onkeyup="this.value=this.value.replace(/[^0-9.]/g,'')" dataType="Currency" msg=""><label class="label01">万元</label> </td>
	<td class="alignright">转资币种</td>
	<td>
		<select name="transfer_currency"  class="select_edit txt-normal">
		{%html_options options=$price_type_arr selected=$transfer_currency%}
		</select>
	</td>
	
</tr>
<tr>
	<td class="alignright">经办日期</td>
	<td>
		<input type=text class="input_date_edit txt-normal" name="transfer_time" id="transfer_time" maxlength="12" value='{%$transfer_time|date_format:"%Y-%m-%d"%}' readonly>
		<script>
			Calendar.setup({
				inputField     :    "transfer_time",   // id of the input field
				ifFormat       :    "%Y-%m-%d",       // format of the input field
				showsTime      :    false,
				timeFormat     :    "24"
			});
		</script>
	</td>
	<td class="alignright">经办人员</td>
	<td>
		<select name="admin_user_id" class="select_edit txt-normal">
			{%html_options options=$admin_info selected=$admin_user_id%}
		</select>
	</td>
</tr>
<tr>
	<td class="alignright">转资单据备注</td>
	<td colspan=3><textarea cols="70" rows="3" class="textarea_edit txt-normal" id="transfer_info" name="transfer_info" >{%$transfer_info%}</textarea></td>
</tr>
</table>
<p class="btn_right">
	<input type=hidden name='transfer_id' id='transfer_id' value='{%$transfer_id%}'>
	<button type="submit" class="b-default" hidefocus="true"><span><em>{%if $act eq 'add'%}提交{%else%}更新{%/if%}</em></span></button>
	<button type="button" class="b-default" hidefocus="true" onclick="javascript:location.href='index.php?c=zy_mc_transfer'"><span><em>返回</em></span></button>
</p>
</form>